{
  // ?表示参数为可选参数
  const print=(name:string,age?:number)=>{
    console.log(name,age);
  }
  print("yx")
  const print2=(name?:string,age?:number)=>{
    console.log(name,age);
  }
  print2()
}